"""TODO header"""

from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app

import config.config_page
import manage.manage_page
import submit.submit_page
import welcome.welcome_page


APPLICATION = webapp.WSGIApplication([
  ('/', welcome.welcome_page.WelcomePage),
  ('/submit', submit.submit_page.SubmitPage),
  ('/do_submit', submit.submit_page.SubmitFormHandler),
  ('/manage', manage.manage_page.ManagePage),
  ('/manage/download/([^/]+)?', manage.manage_page.DownloadPage),
  ('/config', config.config_page.ConfigPage),
  ('/config/edit_field', config.config_page.EditFieldPage),
], debug=True)


def main():
  run_wsgi_app(APPLICATION)


if __name__ == '__main__':
  main()
